# adds precompiled header
CONFIG += precompile_header
PRECOMPILED_HEADER = stdafx.h

# adds _DEBUG macro in debug configuration
# remark: Visual Studio makes it by default
CONFIG(debug, debug|release) {
    DEFINES += _DEBUG
}

CONFIG += console

# removes QT libraries from linker, adds OpenGL and SDL libs
QT -= core gui
QT += opengl
LIBS += -lSDL
LIBS += -lSDL_image
LIBS += -lgsl
LIBS += -lgslcblas
LIBS += -lnoise

# use C++ 2011.
win32:QMAKE_CXXFLAGS += -std=gnu++0x
unix:QMAKE_CXXFLAGS += -std=c++0x

# unix fix (at linux SDL placed in <SDL/SDL_image.h>)
unix:INCLUDEPATH += /usr/include/SDL

win32: LIBS += -L$$PWD/../../../[lib]/SDL-1.2.15/lib/ -lSDL -lSDLmain

INCLUDEPATH += $$PWD/../../../[lib]/SDL-1.2.15/include
DEPENDPATH += $$PWD/../../../[lib]/SDL-1.2.15/include


win32: LIBS += -L$$PWD/../../../[lib]/SDL_image-1.2.12/lib/x86/ -lSDL_image

INCLUDEPATH += $$PWD/../../../[lib]/SDL_image-1.2.12/include
DEPENDPATH += $$PWD/../../../[lib]/SDL_image-1.2.12/include

win32: LIBS += -L$$PWD/../../../[lib]/OpenAL_SDK/libs/Win32/ -lOpenAL32

INCLUDEPATH += $$PWD/../../../[lib]/OpenAL_SDK/include
DEPENDPATH += $$PWD/../../../[lib]/OpenAL_SDK/include

HEADERS += \
    stdafx.h \
    core/coresettings.h \
    core/coreinitializer.h \
    core/window.h \
    core/iengine.h \
    core/inc.h \
    core/idleengine.h \
    glc/inc.h \
    glc/texturegroup.h \
    demo/tileengine.h \
    demo/map.h \
    demo/camera.h \
    util/vec3.h \
    util/mat4.h \
    util/mat3.h \
    util/vec2.h \
    util/vec4.h \
    alc/sound.h \
    alc/soundmanager.h \
    demo/scene.h \
    demo/entity/entitycontainer.h \
    demo/entity/ientity.h \
    demo/tile.h \
    glc/texture2d.h \
    glc/clientstate.h \
    demo/entity/decoration.h \
    demo/cliff.h \
    demo/ISceneElement.h \
    demo/basesceneelement.h

SOURCES += \
    main.cpp \
    stdafx.cpp \
    core/coresettings.cpp \
    core/coreinitializer.cpp \
    core/window.cpp \
    demo/tileengine.cpp \
    demo/map.cpp \
    demo/camera.cpp \
    glc/texturegroup.cpp \
    alc/sound.cpp \
    alc/soundmanager.cpp \
    demo/scene.cpp \
    demo/entity/entitycontainer.cpp \
    demo/tile.cpp \
    glc/texture2d.cpp \
    glc/clientstate.cpp \
    demo/entity/decoration.cpp \
    demo/cliff.cpp \
    demo/basesceneelement.cpp

OTHER_FILES += \
    issues.txt \
    modules.txt

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../../[lib]/SDL-1.2.14/lib/ -lSDL
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../../[lib]/SDL-1.2.14/lib/ -lSDL

INCLUDEPATH += $$PWD/../../../../../[lib]/SDL-1.2.14/include
DEPENDPATH += $$PWD/../../../../../[lib]/SDL-1.2.14/include

win32: LIBS += -L$$PWD/../../../../../[lib]/SDL_image-1.2.10/lib/ -lSDL_image

INCLUDEPATH += $$PWD/../../../../../[lib]/SDL_image-1.2.10/include
DEPENDPATH += $$PWD/../../../../../[lib]/SDL_image-1.2.10/include

win32: LIBS += -L$$PWD/../../../../../[lib]/OpenAL_SDK/libs/Win32/ -lOpenAL32

INCLUDEPATH += $$PWD/../../../../../[lib]/OpenAL_SDK/include
DEPENDPATH += $$PWD/../../../../../[lib]/OpenAL_SDK/include

win32: INCLUDEPATH += G:/[lib]/alglib-3.4.0.cpp/cpp/src
